import request from '@/utils/request'

// 查询参数列表
export function getList(query) {
  return request({
    url: '/matches/findList',
    method: 'get',
    params: query
  })
}

// 删除
export function delMatch(query) {
  return request({
    url: '/matches/del',
    method: 'get',
    params: query
  })
}

// 获取球队
export function getTeamInfo() {
  return request({
    url: '/team/list',
    method: 'get',
  })
}

// 新增修改
export function updateTeam(query) {
  return request({
    url: '/matches/update',
    method: 'post',
    data: query
  })



}// 新增修改
export function addTeam(query) {
  return request({
    url: '/matches/add',
    method: 'post',
    data: query
  })
}
